package com.example.mrzhou.srtfoodapplication;

/**
 * Created by SRTfood on 2017/1/17.
 */
//个人信息类
public class PerInfo {


     long   userid;//个人标签
     Basic basic; //基本信息属性
     Perlove perlove;//个人爱好属性

    //构造方法
    public PerInfo(long userid, Basic basic, Perlove perlove) {
        this.userid = userid;
        this.basic = basic;
        this.perlove = perlove;
    }


    //基本属性
    class Basic{

        /*
         * 属性说明：个人信息的定义
         * @name：名字
         * @age：年龄
         * @hometown：故居
         * @domicile：（现）居住地
         */

         String name,age,sex,hometown,domicile;

        //构造方法
        public Basic(String name, String age, String sex, String hometown, String domicile) {
            this.name = name;
            this.age = age;
            this.sex = sex;
            this.hometown = hometown;
            this.domicile = domicile;
        }


    }

    //个人爱好
    class Perlove{

        /*
         * 方法或类的作用：该类为设置个人爱好属性值，均保存为Float浮点型数据
         * 属性说明：
         * @sour sweet bitter hot salty:酸 甜 苦 辣 咸
         *
         */

        float sour, sweet, bitter, hot, salty;

        //构造方法
        public Perlove(float sour, float sweet, float bitter, float hot, float salty) {
            this.sour = sour;
            this.sweet = sweet;
            this.bitter = bitter;
            this.hot = hot;
            this.salty = salty;
        }
    }
}
